package decorator.main;

/**
 * 销售管理系统
 * decorator.main
 * 这个是 装饰者。
 * 2018/8/9-9:35
 * 科达科技股份有限公司-版权所有
 * Created by wuqiang on 9:35.
 */
public class Whip extends CondimentDecorator {

    Beverage beverage;

    public Whip(Beverage beverage) {
        this.beverage=beverage;
    }

    public String getDescription() {
        return beverage.getDescription()+",Whip";
    }

    public double cost() {
        return .88+beverage.cost();
    }
}
